package work3_14;

import java.util.HashMap;
import java.util.Map;

/**
 * 现有一个map集合如下
 */

public class Question1 {
    public static void main(String[] args) {
        Map<Integer,String> map=new HashMap<Integer,String>();
             map.put(1,"张三丰");
             map.put(2,"周芷若");
             map.put(3,"汪峰");
             map.put(4,"灭绝师太");
             //遍历键级
        System.out.println(map);
        map.put(5,"郭晶");
        map.remove(1);
        map.put(2,"周林");
        System.out.println(map);
    }
}
